import request from "../../utils/request";


export const getData = () => {
  return async (dispatch) => {
    const res = await request.get(
      "https://systemjs.1688.com/krump/schema/1352.json"
    );

    console.log(res.data.list);
    dispatch({ type: "GET_DATA", payload: res.data.list });
  };
};
